```js
document.addEventListener('hbs:mode', (e: CustomEvent) => {
  console.log('mode changed: ', e.detail.mode);
});
```
